package cn.edu.scau.cmi.chenyuesong.singleton;

public class Chairman {
	private static Chairman instanceChairman;
	private String name;
	private Chairman(String name) {
		this.name = name;
	}
	public static Chairman getInstance(String name) {
		if(instanceChairman==null&&!name.equals(null)) {
			instanceChairman = new Chairman(name);
		}
		return instanceChairman;
	}
	public static Chairman getInstance() {
		return instanceChairman;
	}
	public String getName() {
		return this.name;
	}
}
